# -*- coding: ISO-8859-1 -
from Tkinter import *


class InterPosJoueur( Frame):
    def __init__( self,vue, parent):
        Frame.__init__( self, parent)
        self.vue=vue
        self.listInfo=self.vue.c.affichageInterPosJoueur()
        self.totalZombie = 0
        
        self.labelArgent = Label(self, text = 'Argent:', bg="#000000", fg ="#00FF00")
        self.labelArgent.grid(column = 0, row = 0, sticky = "W")
        self.labelArgent2 = Label(self, text = '', bg="#000000", fg ="#FFFFFF")
        self.labelArgent2.grid(column = 1, row = 0, sticky = "W")
        #Pour les colonnes vides
        self.labelColonneVide = Label(self, text = '                                      ', bg="#000000", fg ="#00FF00")
        self.labelColonneVide.grid(column = 2, row = 0, sticky = "W")
       
        self.labelZombie = Label(self, text = 'Nombre de zombies total: ', bg="#000000", fg ="#00FF00")
        self.labelZombie.grid(column = 3, row = 0, sticky = "N")
        self.labelZombie2 = Label(self, text = self.totalZombie , bg="#000000", fg ="#FFFFFF")
        self.labelZombie2.grid(column = 4, row = 0, sticky = "N")
        #Pour les colonnes vides
        self.labelColonneVide = Label(self, text = '                                      ', bg="#000000", fg ="#00FF00")
        self.labelColonneVide.grid(column = 5, row = 0, sticky = "W")
            
#        txt3 = Label(self, text = 'Nombre de zombies LAN: ', bg="#000000", fg ="#00FF00")
#        txt3.grid(column = 6, row = 0, sticky = "E")
#        txt3 = Label(self, text = '3', bg="#000000", fg ="#FFFFFF")
#        txt3.grid(column = 7, row = 0, sticky = "E")
        
    def AfficherArgent(self):
        pass
    
    def AfNbreZomLAN(self):
        pass
    
    def actualiserInfos(self):
        self.listeInfos = self.vue.c.affichageInterPosJoueur()
        self.labelArgent2.config(text= "%.2f" % self.listeInfos[0])
        self.totalZombie = self.listeInfos[1]
        self.labelZombie2.config(text=self.totalZombie)
        
        
        
#if __name__ == "__main__":
#    m = InterPosJoueur()
#    m.fenetre1.mainloop()